﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;

namespace CarShopManagerDAL
{
    public class CarClientDAL
    {
        /// <summary>
        /// 添加客户预定信息
        /// </summary>
        /// <param name="c">客户预定对象</param>
        /// <returns></returns>
        public static int AddCarClientInfo(CarClient c)
        {
            string sqlstr = string.Format("insert into CarClient values('{0}','{1}',{2},'{3}','{4}')",c.Name,c.Mobile,Convert.ToInt32(c.Sex),c.Deposit,c.CarId);
            return DBHelper.ExcuteNonQuery(sqlstr);
        }
    }
}
